package com.link_with_health.mapper;

import com.link_with_health.model.CommentEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {
    CommentEntity queryCommentByCommentId(Long id);
    List<CommentEntity> queryCommentByDrId(Long id);
    List<CommentEntity> queryCommentByUserId(Long id);
    List<CommentEntity> queryCommentByInquiryId(Long id);
    List<CommentEntity> queryCommentByAnonymous(Boolean anonymous);
    List<CommentEntity> queryCommentByRating(Float rating);
    List<CommentEntity> queryAllComment();
    Float getCommentRating(Long drId);

    int insertComment(CommentEntity entity);
    int updateComment(CommentEntity entity);
    int deleteComment(CommentEntity entity);

}
